<include file="./Tpl/Public/header.html" />
<script language="javascript" src="__PUBLIC__/js/jquery-treeview/jquery.treeview.js"></script>
<script type="text/javascript">
$(function(){
	$("#tree").treeview({
		//collapsed: true,
		animated: "medium",
		control:"#sidetreecontrol",
		persist: "location"
	});
})
</script>
<link rel="stylesheet" href="__PUBLIC__/js/jquery-treeview/jquery.treeview.css" />
<h1>
    <span class="action-span1">{$current_operation[g][title]}->{$current_operation[m][title]}->{$current_operation[a][title]}</span>
    <foreach name="list_main_menu" item="info">
    <span class="action-span"><a href="{$info[url]}" target="{$info[target]}">{$info[title]}</a></span>
    </foreach>
    <div style="clear:both"></div>
</h1>
<div class="list-div">
<ul id="tree">
{$html_tree}
</ul>
</div>

<div id="dialog_delete" style="color:#F00; font-size:13px; vertical-align: middle;">"彻底删除"的数据是不可恢复的，请慎用！</div>
<script type="text/javascript">
//参数param一般是id=XX
function dialog_add(param){
	dialog({'title':'添加信息','w':'450','h':'300'},'{:U("add")}',param);
}
function dialog_edit(param){
	dialog({'title':'修改信息','w':'450','h':'300'},'{:U("edit")}',param);
}
//删除数据
var delete_id="";
$("#dialog_delete").dialog({
    autoOpen: false,
    title: '删除信息',
    width:'270',
    height:'150',
    modal: true,
    buttons: {
        '丢到垃圾站': function () {
        	window.location.href='{:U("delete?id=")}'+delete_id;
   		},
        '彻底删除': function () {
			window.location.href='{:U("foreverdelete?id=")}'+delete_id;
        },
		'取消': function () {
           $("#dialog_delete").dialog("close");
        }
    }
});
function confirm_delete(id){
	delete_id=id;
	$("#dialog_delete").dialog("open");
}
</script>
<include file="./Tpl/Public/footer.html" />